Author: Peng Jingtian
The node nodes of Kubernetes are composed of Kubelet, Kube-proxy, flannel, dockerd four components, this paper mainly analyzes the functions and principles of kube-proxy components. Pod is the smallest unit of resource allocation in kubernetes and the smallest entity to perform tasks.
Each pod ha
/var/lib/kubelet/*$ service kube-proxy stop rm -fr /var/lib/kube-proxy/*$ service kube-calico stop#停掉master节点的服务$ service kube-calico stop$ service kube-scheduler stop$ service kube-c
3 port settings in a container network instance serviceThe concepts of these ports are easily confusing, such as creating a service like this:[Plain]View PlainCopy
Apiversion:v1
Kind:service
Metadata
Labels
Name:app1
Name:app1
Namespace:default
Spec
Type:nodeport
Ports
-
targetport:8080
Nodeport:30062
Selector
Name:app1
PortThe port, the service
we have changed the port that the Python app listens to, so we need to rewrite the environment variable Sa_logic_api_url):$ docker run -d -p 8080:8080 -e SA_LOGIC_API_URL='http://3. Run the Sa-frontend container:docker run -d -p 80:80 $DOCKER_USER_ID/sentiment-analysis-frontendAnd then it's ready. Open localhost:80 in the browser.Note: If you change the port of Sa-webapp, or use the IP of the Docker machine, then you need to update the app.js in Sa-frontend and let Analyzesentence get the URL f
Tail-f/var/log/messagenov1409:39:09imagejournal:w111409:39:09.943633 1controller.go:386]Resettingendpointsformasterservice " Kubernetes "to{{}{kubernetesdefault/api/v1/namespaces/default/ Endpoints/kubernetes17553a6b-c907-11e7-b180-fa163ee5f1502002302017-11-1406:43:15 +0000utcWorkaround:Append the--apiserver-count=n to the Api-server configuration file, and then restart the ApiserverThis article is from the "ipcpu" blog, make sure to keep this source
Status.loadBalancer.ingress.hostname
String
Host name of external load balancer
2. Service,rc,pod Architecture Hierarchy Relationship
3, VIP and Service agentThe kube-proxy process running on each node is actually an intelligent software load balancer that forwards requests for servic
hostnameKubelet_hostname= "--hostname-override=k8s-node1"# Location of the Api-serverKubelet_api_server= "--api-servers=http://k8s-master:8080"# POD Infrastructure containerKubelet_pod_infra_container= "--pod-infra-container-image=registry.access.redhat.com/rhel7/pod-infrastructure:latest"# ADD Your own!#KUBELET_ARGS = ""kubelet_args= "--cluster-dns=223.5.5.5--cluster-domain=k8s-master"6. Restart the service on node[Master]For SERVICES in Flanneld et
Container Network Instance
3 port settings in the service
These port concepts are easily confusing, such as creating the following service:
APIVERSION:V1
kind:service
metadata:
Labels:
name:app1
name:app1 namespace:default
Spec:
type:nodeport
ports:
-
Port
The port that's exposed on the service ' s cluster IP (virsual IP). The port is the
accessed? The service provides transparent load balancing between the 2 background pods, distributing the request to any one of them (as shown in the following animation). Completed by the agent running on each node (kube-proxy). More technical details are available here.There is a special type of kubernetes service c
,ip:port combination of automatic association back-end pod, even if the pod changes, kubernetes internal Update This group of relationships, so that the service can match to the new pod. In this way, the fixed IP provided by the service, the user no longer care about the need to visit which pod, and whether the pod will change, greatly improve the quality of
9376 ports above the pod labeled "App=myapp". The service is also assigned an IP address (sometimes referred to as the "Cluster IP"), which is used by the proxy of the services (see below). The service selector will continuously filter the Pod and post the result to the endpoints object with the same name as "My-service
controller-you must do it manually:kubectl delete --namespace=kube-system deployment kube-dnsTo use it, simply place them in the same directory and run the deploy.sh script to pass it to your service CIDR (10.3.0.0/24). This will generate configmap with the necessary corefile. It will also look for the cluster IP of the existing Kube-dns service. For example, run:10.3. 0.0/ cluster.localIn fact, 10.3.0.0/2
Outline:
? How to discover services in Kubernetes
? How to discover the services provided by pod
? How to use service discovery Services
? How to use the Kube-dns discovery service
? Kube-dns principle
? Composition
? Domain name format
? Configuration
Note: this share is based on the
The previous article describes the use of Traefik for service publishing in Kubernetes 1.5.2 cluster environments. Traefik is deployed in Daemonset mode, and the connection Api-server is the HTTP protocol, and RBAC is not configured. This article describes the deployment of Traefik for service publishing in the K8s 1.9 release using the deployment method.Before y
Kubernetes Cluster Deployment DNS ServiceIn Kubernetes each service will be assigned a virtual IP, each service under normal circumstances will not change for a long time, this is relative to the pod of the indefinite IP, the use of the cluster app is relatively stable.But the service's information injected into the po
infiltration of the way, not only to make it easier for everyone to get started, but also to have a deeper understanding of it. ...7-1 Learn kubernetes (UP)7-2 Learn Kubernetes (next)7-3 Prelude to environmental construction7-4 Pre-readiness environment7-5 base cluster Deployment (top)7-6 base cluster deployment (bottom)7-7 Small trial Sledgehammer7-8 Kube-proxy
collection must know the addresses of all other nodes, but when a container is rearranged, its IP address changes. For example, all containers within a kubernetes share an IP address that changes after the pod is rearranged. In kubernetes, this problem can be resolved by contacting the Kubernetes service with the Mong
Recently, Bocloud Boyun novel formally received the CNCF and Linux Fund certified Kubernetes Service Provider qualification (KCSP), which proves Bocloud Boyun novel activities in the Kubernetes community (including active contribution code), business model supporting enterprise end users , as well as the presence of engineers on the site of the three sides have t
Configure the dashboard service for a Kubernetes Cluster
This article describes how to create and use kube-ui (also called dashboard) based on the previous article. This is essentially an api interface for connecting webui to the master. It obtains information about the k8s cluster through the api and then displays it on the web, which is more friendly to users, it is not very useful.
1. Download image file
After a lapse of years, and began to play csdn.
the service in k8s is a virtual concept, completely by Kube-proxy implementation
for each service you create, you need to define three variables: Clusterip port targetport nodeport
which
Clusterip + port is used for internal pod Access service and is then assigned
Target
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.